package top.lyc829.zzl_android.logic.bean;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

public class BaseBean {
    // 基地id
    @SerializedName(value = "id")
    private int id;
    // 基地首页图片url
    @SerializedName(value = "pic_home", alternate = {"indexImgUrl", "index_imgurl"})
    private String indexImgUrl;
    //基地标题
    @SerializedName(value = "title_home", alternate = {"title"})
    private String title;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getIndexImgUrl() {
        return indexImgUrl;
    }

    public void setIndexImgUrl(String indexImgUrl) {
        this.indexImgUrl = indexImgUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return "BaseBean{" +
                "id=" + id +
                ", indexImgUrl='" + indexImgUrl + '\'' +
                ", title='" + title + '\'' +
                '}';
    }

    public List<BaseBean> getExamples() {
        List<BaseBean> list = new ArrayList<>();



        for(int i = 0; i < 30; i++) {
            BaseBean baseBean = new BaseBean();
            baseBean.setId(1);
            baseBean.setTitle("杭州知青纪念馆");
            baseBean.setIndexImgUrl("http://pic.lyc829.top/index_base_image.jpg");
            list.add(baseBean);
        }


        return list;

    }


}
